package com.gduf.lsm.entity;

/**
 * @Author lsm
 * @Data
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 评论表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;
    /** 内容 */
    private String content;
    /** 评论人 */
    private Integer userId;
    /** 父级ID */
    private Integer pid;
    private Integer rootId;
    /** 评论时间 */
    private String time;
    /** 关联ID */
    private Integer fid;
    /** 模块 */
    private String module;

    private List<Comment> children;

    private String userName;

    private String avatar;

    private String replyUser;  // 回复给谁 就是谁的名称

}
